<html  xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <title>通用组件首页</title>
</head>
<body>
	<span sec:authorize="isAuthenticated()">
       Hello | Logged user: <span sec:authentication="name"></span> |
        Roles: <span sec:authentication="principal.authorities"></span> |
        <a th:href="@{/signout}">Sign Out</a>
    </span>
	<span sec:authorize="isAnonymous()">
        | not login
    </span>
	<div align="center" style="margin-top: 100px" sec:authorize="hasRole('admin')">
	    <a th:href="@{/admin}">admin</a>
	</div>
	
	<ul>
		<li>
			<a th:href="@{/demo/page}">@@@@@</a>
		</li>
		<li>
			<a th:href="@{/ajax}">Ajax</a>
		</li>
		<li>
			<a th:href="@{/cookie}">cookie</a>
		</li>
		<li>
			<a th:href="@{/upload}">upload</a>
		</li>
		<li>
			<a th:href="@{/url}">url</a>
		</li>
		<li>
			<a th:href="@{/format}">format</a>
		</li>
		<li>
			<a th:href="@{/pagination}">pagination</a>
		</li>
		<li>
			<a th:href="@{/table}">table</a>
		</li>
		<li>
			<a th:href="@{/nav}">nav</a>
		</li>
		<li>
			<a th:href="@{/tab}">tab</a>
		</li>
		<li>
			<a th:href="@{/date}">date</a>
		</li>
		<li>
			<a th:href="@{/dropdown}">dropdown</a>
		</li>
		<li>
			<a th:href="@{/msg}">msg</a>
		</li>
		<li>
			<a th:href="@{/validate}">validate</a>
		</li>
		<li>
			<a th:href="@{/tree}">tree</a>
		</li>
	</ul>
</body>
</html>